package com.gs.weather.entity;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Alias("DisasterType")
public class DisasterType {
    private Integer id;
    private String name;
    private String signalment;//灾害特征描述
    private String disasterReason;

    private List<String> subTypeNames;//包含多个灾害子类型

    public DisasterType() {
    }

    public DisasterType(String name, String signalment, String disasterReason) {
        this.name = name;
        this.signalment = signalment;
        this.disasterReason = disasterReason;
    }

    public DisasterType(Integer id, String name, String signalment, String disasterReason) {
        this.id = id;
        this.name = name;
        this.signalment = signalment;
        this.disasterReason = disasterReason;
    }


    public List<String> getSubTypeNames() {
        return subTypeNames;
    }

    public void setSubTypeNames(List<String> subTypeNames) {
        this.subTypeNames = subTypeNames;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSignalment() {
        return signalment;
    }

    public void setSignalment(String signalment) {
        this.signalment = signalment;
    }

    public String getDisasterReason() {
        return disasterReason;
    }

    public void setDisasterReason(String disasterReason) {
        this.disasterReason = disasterReason;
    }

    @Override
    public String toString() {
        return "DisasterType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", signalment='" + signalment + '\'' +
                ", disasterReason='" + disasterReason + '\'' +
                ", subTypeNames=" + subTypeNames +
                '}';
    }
}
